package cn.edu.neusoft.yuejian13.yuejian_13.service;


import java.util.List;

import cn.edu.neusoft.yuejian13.yuejian_13.javaBean.Club;
import cn.edu.neusoft.yuejian13.yuejian_13.javaBean.Success;
import cn.edu.neusoft.yuejian13.yuejian_13.javaBean.Train;
import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * Created by Lix on 2018/10/7.
 */

public interface Service {

    //login
    @GET("index/index")
    Call<Success> login(
            @Query("name") String name,
            @Query("password") String password
    );
    //register
    @GET("index/register")
    Call<Success> register(
            @Query("name") String name,
            @Query("password") String password
    );
    //train
    @GET("train/lists")
    Call<List<Train>> alltrain();

    @GET("train/details")
    Call<Train> train_detail(
            @Query("train_id") Integer train_id
    );

    //club
    @GET("club/lists")
    Call<List<Club>> allclub();

    @GET("club/details")
    Call<Club> getClub(
            @Query("club_id") Integer club_id
    );

}
